#ifndef INFORMATIONWIDGET_H
#define INFORMATIONWIDGET_H

#include <QtGui/QWidget>
#include <QtGui/QFrame>

class QToolButton;
class QLabel;

// Shameless mimicked editorview.h
class InformationWidget : public QWidget
{
    Q_OBJECT
public:
    explicit InformationWidget(QWidget *parent = 0);

public slots:
    void display(const QString &infoText, const QString &buttonText,
        QObject *object, const char *buttonPressMember,
        const char *cancelButtonPressMember = 0);

private:
    QFrame *m_base;
    QLabel *m_infoLabel;
    QToolButton *m_infoButton;
    QToolButton *m_infoCloseButton;

};

#endif // INFORMATIONWIDGET_H
